import { IDeviceError } from "./code";
import { HuaweiTime } from "./time";

export interface IHistoryLog<S, D> {
  devId: string;
  gatewayId: string;
  sid: S;
  data: D;
  timestamp: HuaweiTime;
}

export interface IHistoryLogResult<S, D> extends IDeviceError {
  totalCount: number;
  pageNo: number;
  pageSize: number;
  list: IHistoryLog<S, D>[];
}
